package com.base.service.system.ao;

import java.io.Serializable;

import com.gitee.magic.core.valid.annotation.Format;
import com.gitee.magic.core.valid.annotation.Format.FormatType;
import com.gitee.magic.core.valid.annotation.Length;
import com.gitee.magic.core.valid.annotation.NotNull;
import com.gitee.magic.core.valid.annotation.number.IntegerValid;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 用户登录
 *
 * @author Start
 */
@Getter@Setter@ToString
public class UserLoginAO implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Schema(description="账号")
    @NotNull
    @Length(max = 32)
    private String userName;

    @Schema(description="密码")
    @NotNull
    @Format(type = FormatType.MD5)
    private String password;

    @Schema(description="谷歌验证器")
    @NotNull
    @IntegerValid
    private Integer code;

}

